package com.whenjun.dto.kq;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
public class KqUpdReq implements Serializable {

    @ApiModelProperty("考勤 id")
    @NotEmpty(message = "id为空")
    private String id;

    @ApiModelProperty("考勤状态，quanqin：全勤，queqin：缺勤，jiaban：加班，xiujia：休假")
    @Pattern(regexp = "quanqin|queqin|jiaban|xiujia",message = "kqState错误")
//    @NotEmpty(message = "kqState为空")
    private String kqState;

    @ApiModelProperty("备注")
    private String remark;
}
